import Vue from 'vue'
import App from './App.vue'
import store from './store'
import './icons'
import './styles/common.scss'
import * as filters from './filters'

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import TableEmpty from '@/components/TableEmpty'

import axios from 'axios'
import isEmpty from 'lodash.isempty'
import router from './router'

Vue.prototype.$isEmpty = isEmpty
Vue.use(Element)


Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.component('TableEmpty', TableEmpty)

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
new Vue({
  render: h => h(App),
  store,
  router,
}).$mount('#app')
